package com.ssy.lingxi.member.merchant.api.constant;

import com.ssy.lingxi.common.language.LanguageHolder;

/**
 * 返还权益类型枚举
 */
public enum MemberRightReturnTypeEnum {

    /**
     * 返还积分-取消订单
     */
    RETURN_POINTS(1, "返还积分-取消订单", "取消订单，返还抵扣订单金额的积分"),
    ;
    private Integer code;

    MemberRightReturnTypeEnum(Integer code, String message, String remark) {
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return LanguageHolder.getName(this.getClass(), this.getCode());
    }

    public String getRemark() {
        String key = "MemberRightTypeEnum.r.".concat(String.valueOf(this.getCode()));
        return LanguageHolder.getName(key);
    }

    public static String getCodeMsg(Integer code) {
        return LanguageHolder.getName(MemberRightReturnTypeEnum.class, code);
    }

    public static String getRemark(Integer code) {
        return LanguageHolder.getName("MemberRightTypeEnum.r.".concat(String.valueOf(code)));
    }
}
